﻿#ifndef HANDLER_H
#define HANDLER_H

#include <QObject>
#include "head/g_functionextra.h"
#include <QTime>
#include <QDebug>

class Handler : public QObject
{
    Q_OBJECT
public:
    explicit Handler(QObject *parent = 0);

    void scan(const QString &dbName);

public slots:
    void scanFinished();

private:
    QFutureWatcher<bool> *watcher;
    QTime time;
};

#endif // HANDLER_H
